﻿@model PagedList.IPagedList<Model.orders>
@using PagedList.Mvc;

@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    ViewBag.Title = "订单发货";
}

<table class="table">
    <tr>
        <th>
            序号
        </th>
        <th>
            用户
        </th>
        <th>
            商品数量
        </th>
        <th>
            商品总价
        </th>
        <th>
            订单生成时间
        </th>
        <th>
            订单支付时间
        </th>
        <th>
            当前状态
        </th>
        <th>
            操作
        </th>
    </tr>

    @foreach (var item in Model)
    {
    <tr>
        <td style="height:70px;">
            @Html.DisplayFor(modelItem => item.ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.users.nickName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.goodNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sumPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.createTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.payTime)
        </td>
        <td>
            <span style="width:55px;display:inline-block;">已支付</span>
        </td>
        <td style="width:80px;">
            @Html.ActionLink("发货", "sendGoods", new { id = item.ID })
        </td>
    </tr>
    }

</table>
@Html.PagedListPager(Model, page => Url.Action("GoodsManange", "Admin", new { page = page }), PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(new PagedListRenderOptions { LinkToFirstPageFormat = "首页", LinkToLastPageFormat = "尾页", MaximumPageNumbersToDisplay = 5 }, new AjaxOptions { HttpMethod = "GET", InsertionMode = InsertionMode.Replace, UpdateTargetId = "manager-wrapper" }))

@section css{
    <link href="~/Content/css/PagedList.css" rel="stylesheet" />
    <link href="~/Content/css/GoodsClassicationPatialView.css" rel="stylesheet" />
}